<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <script src="react-demos/build/react.development.js"></script>
        <script src="react-demos/build/react-dom.development.js"></script>
        <script src="react-demos/build/babel.min.js"></script>
    </head>
    <body>
        <div id="example"></div>
        <script type="text/babel">
/*           var HelloMessage = React.createClass({
            render: function() {
              return <h1>Hello {this.props.name}</h1>;
            }
          }); */ /*注释的是原文，没有运行结果，看了看老师的代码，什么时候改了？？js 还出现继承了，what，我感觉对js的认识停留在了大一开学的时候*/
          class HelloMessage extends React.Component {
            render(){
              return <h1>Hello,{this.props.name}</h1>/* ,<p> hhhhh </p> */;
            }
          }

          ReactDOM.render(
            <HelloMessage name="shafish"/>,
            document.getElementById("example")
          );
        </script>
      </body>
</html>